package com.xzavier.yunlian_interview.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@TableName("questions")
public class QuestionItem implements Serializable {
    @TableId(type = IdType.AUTO)
    private String id;
    @TableField("questionNo")
    private String questionNo;

    private String stem;

    private String content;
    @TableField("subjectName")
    private String subjectName;
    @TableField("questionType")
    private int questionType;

    private int difficulty;

    private int views;
    @TableField("likeCount")
    private int likeCount;
    @TableField("questionBankType")
    private Integer questionBankType;
    @TableField("creatorName")
    private String creatorName;
    @TableField("creatorAvatar")
    private String creatorAvatar;
    @TableField("createdAt")
    private Date createdAt;
    @TableField("likeFlag")
    private int likeFlag;
    @TableField("readFlag")
    private int readFlag;




}
